package com.ruoyi.wx.util;

public class AddressResponse {
    private int status;
    private String message;
    private String request_id;
    private Result result;
    
    // getters and setters


    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getRequest_id() {
        return request_id;
    }

    public void setRequest_id(String request_id) {
        this.request_id = request_id;
    }

    public Result getResult() {
        return result;
    }

    public void setResult(Result result) {
        this.result = result;
    }

    public static class Result {
        private String title;
        private Location location;
        private AdInfo ad_info;
        private AddressComponents address_components;
        private double similarity;
        private int deviation;
        private int reliability;
        private int level;
        
        // getters and setters

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public Location getLocation() {
            return location;
        }

        public void setLocation(Location location) {
            this.location = location;
        }

        public AdInfo getAd_info() {
            return ad_info;
        }

        public void setAd_info(AdInfo ad_info) {
            this.ad_info = ad_info;
        }

        public AddressComponents getAddress_components() {
            return address_components;
        }

        public void setAddress_components(AddressComponents address_components) {
            this.address_components = address_components;
        }

        public double getSimilarity() {
            return similarity;
        }

        public void setSimilarity(double similarity) {
            this.similarity = similarity;
        }

        public int getDeviation() {
            return deviation;
        }

        public void setDeviation(int deviation) {
            this.deviation = deviation;
        }

        public int getReliability() {
            return reliability;
        }

        public void setReliability(int reliability) {
            this.reliability = reliability;
        }

        public int getLevel() {
            return level;
        }

        public void setLevel(int level) {
            this.level = level;
        }
    }
    
    public static class Location {
        private double lng;
        private double lat;
        
        // getters and setters

        public double getLng() {
            return lng;
        }

        public void setLng(double lng) {
            this.lng = lng;
        }

        public double getLat() {
            return lat;
        }

        public void setLat(double lat) {
            this.lat = lat;
        }
    }
    
    public static class AdInfo {
        private String adcode;
        
        // getters and setters

        public String getAdcode() {
            return adcode;
        }

        public void setAdcode(String adcode) {
            this.adcode = adcode;
        }
    }
    
    public static class AddressComponents {
        private String province;
        private String city;
        private String district;
        private String street;
        private String street_number;
        
        // getters and setters

        public String getProvince() {
            return province;
        }

        public void setProvince(String province) {
            this.province = province;
        }

        public String getCity() {
            return city;
        }

        public void setCity(String city) {
            this.city = city;
        }

        public String getDistrict() {
            return district;
        }

        public void setDistrict(String district) {
            this.district = district;
        }

        public String getStreet() {
            return street;
        }

        public void setStreet(String street) {
            this.street = street;
        }

        public String getStreet_number() {
            return street_number;
        }

        public void setStreet_number(String street_number) {
            this.street_number = street_number;
        }
    }
}